package com.zelin.gulimall.product.feign;

import com.zelin.common.to.SkuReDuctionTo;
import com.zelin.common.to.SpuBoundsTo;
import com.zelin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by WF on 2021/1/3 10:33
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {


    //保存spu的积分信息
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    //保存
    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReDuctionTo skuReDuctionTo);
}
